import request from '@/utils/request'

// 查询供应商信息列表
export function listManage(query) {
  return request({
    url: '/suppliers/manage/list',
    method: 'get',
    params: query
  })
}
export function listSuppliers(query) {
  return request({
    url: '/suppliers/manage/list',
    method: 'get',
    params: query
  })
}
// 查询供应商信息详细
export function getManage(sId) {
  return request({
    url: '/suppliers/manage/' + sId,
    method: 'get'
  })
}

// 新增供应商信息
export function addManage(data) {
  return request({
    url: '/suppliers/manage',
    method: 'post',
    data: data
  })
}

// 修改供应商信息
export function updateManage(data) {
  return request({
    url: '/suppliers/manage',
    method: 'put',
    data: data
  })
}

// 删除供应商信息
export function delManage(sId) {
  return request({
    url: '/suppliers/manage/' + sId,
    method: 'delete'
  })
}
